<style>
.ads{
    text-align:center;
}
.ads img{
    max-width: 178px;
}
</style>
<div class="ads">
<?php
if(!empty($data)){
    foreach($data as $data){
        echo '
        <a href="'.$data->url.'"><img src="'.$data->image.'" alt="" /></a>
        ';
    }
}

?>
</div>